package com.ruoyi.system.domain;

import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 全局设备类型对象 drtypeinfo
 * 
 * @author yaozh
 * @date 2024-03-16
 */
public class GlobalDrTypeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自动递增，设备类型ID */
    @Excel(name = "设备类型ID",width = 10)
    private Long drtypeid;

    /** 父设备类型ID */
    @Excel(name = "父设备类型ID",width = 12)
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;

    /** 设备类型名称 */
    @Excel(name = "设备类型中文名称",width = 20)
    private String drtypename;

    /** 设备类型名称（英文名） */
    @Excel(name = "设备类型英文名称",width = 42)
    private String drtypenameEN;

    /** 设备类型代码 */
    @Excel(name = "设备类型代码",width = 12)
    private String drTypeCode;

    /** 设备类型的图标ID（参考icon表） */
    private Long drtypeiconid;

    /** 是否显示，0不显示，1显示 */
    @Excel(name = "是否显示，0不显示，1显示",width = 25)
    private Long isshow;

    /** 是否显示结构图，0不显示，1显示 */
    @Excel(name = "是否显示结构图，0不显示，1显示",width = 30)
    private Long isdrtype;

    /** 是否是自定义类型，0否，1是 */
    @Excel(name = "是否是自定义类型，0否，1是",width = 25)
    private Long iscustomType;

    /** 页面ID（参考pic表） */
    private Long picid;

    /** 是否能耗存储 */
    @Excel(name = "是否能耗",width = 9)
    private Long isenergy;

    /** 全局设备类型模板信息 */
    private List<GlobalDrTypeMode> globalDrTypeModeList;
    /** 显示顺序 */
    private Integer orderNum;

    /** 父部门名称 */
    private String parentName;

    /** 子部门 */
    private List<GlobalDrTypeInfo> children = new ArrayList<GlobalDrTypeInfo>();


    public void setDrtypeid(Long drtypeid) 
    {
        this.drtypeid = drtypeid;
    }

    public Long getDrtypeid() 
    {
        return drtypeid;
    }
    public Long getParentId()
    {
        return parentId;
    }

    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    public void setDrtypename(String drtypename) 
    {
        this.drtypename = drtypename;
    }

    public String getDrtypename() 
    {
        return drtypename;
    }
    public void setDrtypenameEN(String drtypenameEN) 
    {
        this.drtypenameEN = drtypenameEN;
    }

    public String getDrtypenameEN() 
    {
        return drtypenameEN;
    }
    public void setDrTypeCode(String drTypeCode) 
    {
        this.drTypeCode = drTypeCode;
    }

    public String getDrTypeCode() 
    {
        return drTypeCode;
    }
    public void setDrtypeiconid(Long drtypeiconid) 
    {
        this.drtypeiconid = drtypeiconid;
    }

    public Long getDrtypeiconid() 
    {
        return drtypeiconid;
    }
    public void setIsshow(Long isshow) 
    {
        this.isshow = isshow;
    }

    public Long getIsshow() 
    {
        return isshow;
    }
    public void setIsdrtype(Long isdrtype) 
    {
        this.isdrtype = isdrtype;
    }

    public Long getIsdrtype() 
    {
        return isdrtype;
    }
    public void setIscustomType(Long iscustomType) 
    {
        this.iscustomType = iscustomType;
    }

    public Long getIscustomType() 
    {
        return iscustomType;
    }
    public void setPicid(Long picid) 
    {
        this.picid = picid;
    }

    public Long getPicid() 
    {
        return picid;
    }
    public void setIsenergy(Long isenergy) 
    {
        this.isenergy = isenergy;
    }

    public Long getIsenergy() 
    {
        return isenergy;
    }

    public List<GlobalDrTypeMode> getGlobalDrTypeModeList()
    {
        return globalDrTypeModeList;
    }

    public void setGlobalDrTypeModeList(List<GlobalDrTypeMode> globalDrTypeModeList)
    {
        this.globalDrTypeModeList = globalDrTypeModeList;
    }

    public Integer getOrderNum()
    {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }

    public String getParentName()
    {
        return parentName;
    }

    public void setParentName(String parentName)
    {
        this.parentName = parentName;
    }

    public List<GlobalDrTypeInfo> getChildren()
    {
        return children;
    }

    public void setChildren(List<GlobalDrTypeInfo> children)
    {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drtypeid", getDrtypeid())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("drtypename", getDrtypename())
            .append("drtypenameEN", getDrtypenameEN())
            .append("drTypeCode", getDrTypeCode())
            .append("drtypeiconid", getDrtypeiconid())
            .append("isshow", getIsshow())
            .append("isdrtype", getIsdrtype())
            .append("iscustomType", getIscustomType())
            .append("picid", getPicid())
            .append("isenergy", getIsenergy())
            .append("globalDrTypeModeList", getGlobalDrTypeModeList())
            .toString();
    }
}
